#ifndef MOVIECONTROL_H
#define MOVIECONTROL_H

#include <QtGui/QWidget>
#include "ui_moviecontrol.h"
#include "include/dto/3d/matrix.h"
#include <QtNetwork/QHttp>
#include <QFile>
#include <QThread>
#include <QFileDialog>
#include "src/qtdata/NPropList.h"


class MovieControl : public QWidget
{
    Q_OBJECT

public:
    MovieControl(QWidget *parent = 0);
    ~MovieControl();
    void setDisplay(VideoDisplay *display);
    Texture* getSelectedTexture();
    Texture* getSelectedSaveTexture();
    Texture* getSelectedLoadTexture();
public slots:
    void test();

    void selectFile();
    void download();
    void printState(int state);
    void savePosition();
    void setPool(DataPool *_pool);
    void filter();
    void load(QModelIndex index);
    
private:
    Ui::MovieControlClass ui;
    VideoDisplay *display;
    QHttp *http;
    QFile *file;
    DataPool *pool;
    MovieList *list;
};

#endif // MOVIECONTROL_H
